package com.gqj.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class ReaderAuto {
    @Value("${readName}")
    private String ipPort;

    @PostConstruct
    public void start(){
        System.out.println("IP地址；"+ipPort);
        ReadTagsGpiTrigger tagsGpiTrigger = new ReadTagsGpiTrigger(ipPort);
        tagsGpiTrigger.start();
    }
}
